package com.taptech.doufu.util;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.animation.Interpolator;
import android.widget.ProgressBar;

/**
 * Created by qlx on 2016/12/15.
 */

public class TFProgressBar extends ProgressBar {
    public TFProgressBar(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public TFProgressBar(Context context) {
        super(context);
    }

    public TFProgressBar(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public TFProgressBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {

        super(context, attrs, defStyleAttr, defStyleRes);
    }


    @Override
    public void setIndeterminateDrawable(Drawable d) {
        super.setIndeterminateDrawable(d);
        if (d.getLevel() != 1){
            d.setLevel(1);
        }
    }

    


}
